import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home'
import Model from '@/pages/Model'
import Detail from '@/pages/Detail'
import Base from '@/pages/base'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/base'
    },
    {
      path: '/base',
      component: Base
    },
    {
      path: '/home',
      component: Home
    },
    {
      path: '/model/:id',
      component: Model
    },
    {
      path: '/detail',
      component: Detail
    }
  ]
})
